for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import dP from 'dot-prop';
import { findGroup } from './utils';
export default class BaseReporter {
constructor(file) {
this.file = file;
}
_init() {}
_build(actions, { groupBy = [] } = {}) {
const map = new Map();
const groups = {};
for (const a of actions) {
const groupValues = groupBy.map(key => dP.get(a, key));
findGroup.call(this, groups, groupValues, a.id);
map.set(a.id, a);
return { groups, map };
getHash(action) {
return action.id;